<template>
	<view class="content">
		{{info}}
		<button @click="toDemonstration">演示功能</button>
		<view>语言：{{$t('language',[123,456])}}</view>
		<button @click="setlanguage('en')">修改语言</button>
		<wxn-icon name='weixin' size="100" ></wxn-icon>
		
		<!-- <view style="display: flex;flex-wrap: wrap;">
		</view> -->
		
		
	</view>
</template>

<script>
	import {
		url
	} from '../../common/config';
	import {
		req,
		getCurrentTask
	} from '../../common/net/request';
	import {
		mapGetters,
		mapState
	} from 'vuex'
	import {
		setStorage,
		setStorageSync,
		getStorage,
		removeStorageSync,
		setlanguage
	} from '../../common/tools';
	export default {
		data() {
			return {
				title: 'Hello',
				url: url()
			}
		},
		onLoad() {
			// console.log('store'+this.$store);
			let info = uni.getStorageInfoSync()
			console.log('info', info);
			console.log('移除key', removeStorageSync('123'));



		},
		computed: {
			...mapGetters(['userInfo']),
			...mapState('user', ['info'])
		},
		methods: {
			toDemonstration() {
				uni.navigateTo({
					url: '/pages/demonstration/index'
				})
			},
			//修改语言
			setlanguage(language) {
				setlanguage(language)
			}

		}
	}
</script>

<style lang="scss">
	.content {
		// display: flex;
		// flex-direction: column;
		// align-items: center;
		// justify-content: center;
		// @include textlineclamp(1)
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;

	}
</style>